import request from '../http';
import {User} from '../index';

export const loginApi = (params: object) => {
  return request<User.UserInfoRes>('post', 'user/login', params);
};

export const testApi = () => {
  return request('get', 'article/home');
};
